package com.fsl.springbootdesignpattern.b_factory.abstract_factory;

import com.fsl.springbootdesignpattern.b_factory.factory_method.AudiFactory;
import com.fsl.springbootdesignpattern.b_factory.simple_factory.Car;

public class DefaultFactory extends AbstractFactory {

    /**
     * 默认工厂，默认生产某一种商品
     * 在使用的时候，用户调用这个默认工厂就可以了
     */
    private AudiFactory audiFactory = new AudiFactory();

    @Override
    protected Car getCar() {
        return audiFactory.getCar();
    }
}
